package cn.openea.perpartner.meily.web.entity.vo;

import cn.openea.perpartner.meily.web.entity.Provider;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import java.util.List;

/**
 * @author ysk
 * @version 1.0.1
 * @Description
 * @createTime 2023年04月12日 10:32:00
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ProviderVo {

    private Provider provider;

    private List<String> ids;

    @Max(1)
    @Min(0)
    private Short batchType = 0;

    public boolean byIds() {
        return this.batchType == 0;
    }


}
